﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="querymessages.aspx.cs" Inherits="linkDATABASE.留言查询.querymessages" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="mainpage.css">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="referrer" content="no-referrer" />
    <link rel="icon" href="http://icons.iconarchive.com/icons/chanut/role-playing/256/Monster-icon.png">


    <title>留言列表</title>

    <style>

    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="container">
            <h2>留言列表</h2>
            <asp:GridView CssClass="table" ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:BoundField DataField="Detail" HeaderText="Detail" SortExpression="Detail" />
                    <asp:BoundField DataField="Time" HeaderText="Time" SortExpression="Time" />
                    <asp:BoundField DataField="Back" HeaderText="Back" SortExpression="Back" />
                </Columns>
                <HeaderStyle BackColor="#666699" ForeColor="#F0F0F0" />
            </asp:GridView>
            <br />
            <div class="filter bar">
                留言人名字:
            <asp:TextBox CssClass="textbox" ID="TextBox1" runat="server"></asp:TextBox>&nbsp;&nbsp; <asp:Button CssClass="button" ID="Button1" runat="server" Text="过滤" OnClick="Button1_Click" />
                <br />
            </div>
            <br />
            <div class="otherlink bar">
                <a href="../留言/lleavemessage.aspx">去添加留言</a>&nbsp;
            <a href="../留言评论/newcomment.aspx">通过id给留言添加评论</a>
            </div>

        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GuestBookConnectionString %>" SelectCommand="SELECT ID, Name, Detail, Time, Back FROM gusetbookinfo"></asp:SqlDataSource>
    </form>
</body>
</html>
